﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Configuration;
using System.Xml;

namespace DotNET4Study.MySection
{
    class MyConfigurationSectionHandler : IConfigurationSectionHandler
    {
        public object Create(object parent, object configContext, System.Xml.XmlNode section)
        {
            MyConfig myConfig = new MyConfig();
            myConfig.Name= section.Name;
            myConfig.Foo = section.ChildNodes[0];

            return myConfig;
        }
    }
}
